﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain
{
    /// <summary>
    /// 请假Model
    /// </summary>
    public class LeaveModel
    {
        /// <summary>
        /// 请假主键
        /// </summary>
        [Key]
        public int LeaveId { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 部门Id
        /// </summary>
        public int DepId { get; set; }


        /// <summary>
        /// 请假类别
        /// </summary>
        public string LeaveType { get; set; }
        /// <summary>
        /// 请假时间 格式: XXXX/XX/XX 至 XXXX/XX/XX 
        /// </summary>
        public string LeavePeriod { get; set;}
        /// <summary>
        /// 总工时
        /// </summary>
        public decimal LeaveTime { get; set;}
        /// <summary>
        /// 报到时间    
        /// </summary>
        public DateTime LeaveEndTime { get; set;}
        /// <summary>
        /// 请假理由
        /// </summary>
        public string LeaveReason { get; set;}
        /// <summary>
        /// 部门领导(含多人名称)
        /// </summary>
        public string LeaveLeader { get; set;}
        /// <summary>
        /// 审批状态
        /// </summary>
        public int AppStatus {  get; set; } 
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 当前审批级别
        /// </summary>
        public int LevelRoleId { get; set; }

        /// <summary>
        /// 拒绝原因
        /// </summary>
        public string? Reason { get; set; }


    }
}
